
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>新建页面 · 合同管理</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="config.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Framework.html">
            
                <a href="../Framework.html">
            
                    
                    架构
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">src目录</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="api.html">
            
                <a href="api.html">
            
                    
                    api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="assets.html">
            
                <a href="assets.html">
            
                    
                    assets
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="components.html">
            
                <a href="components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="filters.html">
            
                <a href="filters.html">
            
                    
                    filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="mixins.html">
            
                <a href="mixins.html">
            
                    
                    mixins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="router.html">
            
                <a href="router.html">
            
                    
                    router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="store.html">
            
                <a href="store.html">
            
                    
                    store
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="styles.html">
            
                <a href="styles.html">
            
                    
                    styles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="utils.html">
            
                <a href="utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="views/">
            
                <a href="views/">
            
                    
                    views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="views/activate.html">
            
                <a href="views/activate.html">
            
                    
                    activate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="views/approvemanage.html">
            
                <a href="views/approvemanage.html">
            
                    
                    approvemanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="views/sealmanage.html">
            
                <a href="views/sealmanage.html">
            
                    
                    sealmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.4" data-path="views/deptmanage.html">
            
                <a href="views/deptmanage.html">
            
                    
                    deptmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.5" data-path="views/faildoc.html">
            
                <a href="views/faildoc.html">
            
                    
                    faildoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.6" data-path="views/files.html">
            
                <a href="views/files.html">
            
                    
                    files
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.7" data-path="views/init.html">
            
                <a href="views/init.html">
            
                    
                    init
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.8" data-path="views/layout.html">
            
                <a href="views/layout.html">
            
                    
                    layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.9" data-path="views/login.html">
            
                <a href="views/login.html">
            
                    
                    login
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.10" data-path="views/myfiles.html">
            
                <a href="views/myfiles.html">
            
                    
                    myfiles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.11" data-path="views/passmail.html">
            
                <a href="views/passmail.html">
            
                    
                    passmail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.12" data-path="views/redirect.html">
            
                <a href="views/redirect.html">
            
                    
                    redirect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.13" data-path="views/sysmanage.html">
            
                <a href="views/sysmanage.html">
            
                    
                    sysmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.14" data-path="views/template.html">
            
                <a href="views/template.html">
            
                    
                    template
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.15" data-path="views/updateinfo.html">
            
                <a href="views/updateinfo.html">
            
                    
                    updateinfo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.16" data-path="views/usermanage.html">
            
                <a href="views/usermanage.html">
            
                    
                    usermanage
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="config.html">
            
                <a href="config.html">
            
                    
                    配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.12" data-path="newPage.html">
            
                <a href="newPage.html">
            
                    
                    新建页面
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >新建页面</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x65B0;&#x5EFA;&#x9875;&#x9762;">&#x65B0;&#x5EFA;&#x9875;&#x9762;</h1>
<blockquote>
<p>&#x6309;&#x7167;&#x6B63;&#x5E38;&#x7F16;&#x7801;&#x6D41;&#x7A0B;&#xFF0C;&#x91CD;&#x65B0;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x9875;&#x9762;&#x3002;</p>
<p>&#x53C2;&#x8003; <strong>&#x7528;&#x6237;&#x7BA1;&#x7406;</strong> &#x6A21;&#x5757;</p>
</blockquote>
<ul>
<li><p>&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x9875;&#x9762;&#xFF0C;&#x8DEF;&#x5F84; <code>src\views\newPage\index.vue</code> </p>
<p><img src="../images/newPage_init.jpg" alt=""></p>
</li>
</ul>
<ul>
<li><p>&#x6DFB;&#x52A0;<code>router</code> &#x8DEF;&#x7531;</p>
<ul>
<li><p>&#x8DEF;&#x5F84; <code>src\router\menu.js</code>  &#x627E;&#x5230;&#x5B9A;&#x4E49;&#x7528;&#x6237;&#x7BA1;&#x7406;&#x6A21;&#x5757;&#x7684; <code>json</code> =&gt; <code>usermanage</code>&#xFF0C;&#x590D;&#x5236;&#x4E00;&#x6761;&#x3002;&#xFF08;&#x8DEF;&#x7531;&#x7684;&#x914D;&#x7F6E;&#x683C;&#x5F0F;&#x90FD;&#x662F;&#x4E00;&#x6837;&#x7684;&#xFF09;</p>
<p><img src="../images/newPage_router_usernamage.jpg" alt=""></p>
</li>
<li><p>&#x65B0;&#x5B9A;&#x4E49;&#x9875;&#x9762;&#x540D;&#x79F0;&#x4E3A; <code>newPage</code></p>
<p><img src="../images/newPage_router_new.jpg" alt=""></p>
</li>
</ul>
</li>
</ul>
<ul>
<li><p>&#x9875;&#x9762;&#x6548;&#x679C;</p>
<p><img src="../images/newPage_view.jpg" alt=""></p>
</li>
</ul>
<ul>
<li><p>&#x6DFB;&#x52A0;&#x5DE5;&#x5177;&#x680F;</p>
<ul>
<li><p>&#x5F15;&#x5165;&#x81EA;&#x5B9A;&#x4E49;&#x7684;&#x7EC4;&#x4EF6;&#x5217;&#x8868;</p>
<pre class="language-"><code class="lang-javascript"><span class="token keyword">import</span> <span class="token punctuation">{</span>
    ToolButton <span class="token keyword">as</span> toolBtn<span class="token punctuation">,</span> <span class="token comment">// &#x5DE5;&#x5177;&#x680F;&#x7EC4;&#x4EF6;</span>
    Pagination <span class="token keyword">as</span> paginationTemp <span class="token comment">// &#x5206;&#x9875;&#x7EC4;&#x4EF6;</span>
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/components&apos;</span><span class="token punctuation">;</span>
</code></pre>
</li>
<li><p>&#x5C40;&#x90E8;&#x6CE8;&#x518C;</p>
<pre class="language-"><code class="lang-javascript">components<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
    paginationTemp<span class="token punctuation">,</span> <span class="token comment">// &#x5206;&#x9875;</span>
    toolBtn <span class="token comment">// &#x6309;&#x94AE;</span>
<span class="token punctuation">}</span><span class="token punctuation">,</span>
</code></pre>
</li>
<li><p>Dom&#x5C42;</p>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x5DE5;&#x5177;&#x680F; <span class="token operator">--</span><span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span>section <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;filter-container search-bar-container&quot;</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>div <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;tool-btn-container&quot;</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x6DFB;&#x52A0;&#x7528;&#x6237; <span class="token operator">--</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>tool<span class="token operator">-</span>btn <span class="token operator">:</span>enable<span class="token operator">=</span><span class="token string">&quot;true&quot;</span> icon<span class="token operator">=</span><span class="token string">&quot;iconfont ali-add1&quot;</span> content<span class="token operator">=</span><span class="token string">&quot;&#x65B0;&#x5EFA;&quot;</span> @clickHandler<span class="token operator">=</span><span class="token string">&quot;add&quot;</span><span class="token operator">/</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x7528;&#x6237;&#x7F16;&#x8F91; <span class="token operator">--</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>tool<span class="token operator">-</span>btn <span class="token operator">:</span>enable<span class="token operator">=</span><span class="token string">&quot;isEdit&quot;</span> icon<span class="token operator">=</span><span class="token string">&quot;iconfont ali-edit1&quot;</span> content<span class="token operator">=</span><span class="token string">&quot;&#x7F16;&#x8F91;&quot;</span> @clickHandler<span class="token operator">=</span><span class="token string">&quot;edit&quot;</span><span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x6839;&#x636E;&#x767B;&#x5F55;&#x8D26;&#x53F7;&#x3001;&#x90AE;&#x7BB1;&#x641C;&#x7D22; <span class="token operator">--</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>div style<span class="token operator">=</span><span class="token string">&quot;margin-right: 110px;display: flex;&quot;</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>el<span class="token operator">-</span>input placeholder<span class="token operator">=</span><span class="token string">&quot;&#x8BF7;&#x8F93;&#x5165;&quot;</span> prefix<span class="token operator">-</span>icon<span class="token operator">=</span><span class="token string">&quot;el-icon-search&quot;</span> clearable v<span class="token operator">-</span>model<span class="token operator">=</span><span class="token string">&quot;listQuery.keyword&quot;</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span><span class="token operator">/</span>el<span class="token operator">-</span>input<span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>el<span class="token operator">-</span>button icon<span class="token operator">=</span><span class="token string">&quot;el-icon-search&quot;</span> @click<span class="token operator">=</span><span class="token string">&quot;initList&quot;</span><span class="token operator">&gt;</span><span class="token operator">&lt;</span><span class="token operator">/</span>el<span class="token operator">-</span>button<span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">/</span>section<span class="token operator">&gt;</span>
</code></pre>
</li>
<li><p>&#x6548;&#x679C;&#x56FE;</p>
<p><img src="../images/newPage_toolbtn.jpg" alt=""></p>
</li>
</ul>
</li>
<li><p>&#x6DFB;&#x52A0;&#x8868;&#x683C;&#x548C;&#x5206;&#x9875;</p>
<ul>
<li><p>&#x63A5;&#x53E3;&#x6587;&#x4EF6;&#x5F15;&#x5165;</p>
<pre class="language-"><code class="lang-javascript"><span class="token keyword">import</span> <span class="token punctuation">{</span> operator_page<span class="token punctuation">,</span> operator_count <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api/operator&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
</code></pre>
</li>
<li><p>&#x8868;&#x683C;</p>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>el<span class="token operator">-</span>table <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;table&quot;</span> <span class="token operator">:</span>data<span class="token operator">=</span><span class="token string">&quot;tableData&quot;</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x7528;&#x6237;&#x5217;&#x8868; <span class="token operator">--</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column type<span class="token operator">=</span><span class="token string">&quot;selection&quot;</span> width<span class="token operator">=</span><span class="token string">&quot;55&quot;</span> <span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;account&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x8D26;&#x6237;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip<span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;name&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x7528;&#x6237;&#x540D;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip <span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;email&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x90AE;&#x7BB1;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip <span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;deptName&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x90E8;&#x95E8;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip <span class="token operator">/</span><span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">/</span>el<span class="token operator">-</span>table<span class="token operator">&gt;</span>
</code></pre>
</li>
<li><p>&#x81EA;&#x5B9A;&#x4E49;&#x5206;&#x9875;&#x7EC4;&#x4EF6;</p>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>section <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;footer-container&quot;</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>pagination<span class="token operator">-</span>temp <span class="token operator">:</span>page<span class="token punctuation">.</span>sync<span class="token operator">=</span><span class="token string">&quot;page&quot;</span> <span class="token operator">:</span>query<span class="token punctuation">.</span>sync<span class="token operator">=</span><span class="token string">&quot;listQuery&quot;</span> @initList<span class="token operator">=</span><span class="token string">&quot;initList&quot;</span> <span class="token operator">/</span><span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">/</span>section<span class="token operator">&gt;</span>
</code></pre>
</li>
<li><p>&#x63A5;&#x53E3;&#x83B7;&#x53D6;&#x6570;&#x636E;&#xFF0C;&#x8D4B;&#x503C;&#x7ED9; <code>tableData</code></p>
<pre class="language-"><code class="lang-javascript">methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token keyword">async</span> <span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316;&#x6570;&#x636E;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">[</span><span class="token punctuation">{</span> data<span class="token operator">:</span> page <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> count <span class="token punctuation">}</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">await</span> Promise<span class="token punctuation">.</span><span class="token function">all</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token function">operator_page</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token function">operator_count</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>page<span class="token punctuation">.</span>total <span class="token operator">=</span> count<span class="token punctuation">.</span>data<span class="token punctuation">.</span>count<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>tableData <span class="token operator">=</span> page<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
</code></pre>
</li>
</ul>
</li>
<li><p>&#x6700;&#x7EC8;&#x6548;&#x679C;</p>
<p><img src="../images/newPage_table.jpg" alt=""></p>
</li>
<li><p>&#x4EE3;&#x7801;</p>
<pre class="language-"><code class="lang-javascript"><span class="token operator">&lt;</span>template<span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>div <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;app-container&quot;</span><span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x5DE5;&#x5177;&#x680F; <span class="token operator">--</span><span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span>section <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;filter-container search-bar-container&quot;</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>div <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;tool-btn-container&quot;</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x6DFB;&#x52A0;&#x7528;&#x6237; <span class="token operator">--</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>tool<span class="token operator">-</span>btn <span class="token operator">:</span>enable<span class="token operator">=</span><span class="token string">&quot;true&quot;</span> icon<span class="token operator">=</span><span class="token string">&quot;iconfont ali-add1&quot;</span> content<span class="token operator">=</span><span class="token string">&quot;&#x65B0;&#x5EFA;&quot;</span> @clickHandler<span class="token operator">=</span><span class="token string">&quot;add&quot;</span><span class="token operator">/</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x7528;&#x6237;&#x7F16;&#x8F91; <span class="token operator">--</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>tool<span class="token operator">-</span>btn <span class="token operator">:</span>enable<span class="token operator">=</span><span class="token string">&quot;isEdit&quot;</span> icon<span class="token operator">=</span><span class="token string">&quot;iconfont ali-edit1&quot;</span> content<span class="token operator">=</span><span class="token string">&quot;&#x7F16;&#x8F91;&quot;</span> @clickHandler<span class="token operator">=</span><span class="token string">&quot;edit&quot;</span><span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x6839;&#x636E;&#x767B;&#x5F55;&#x8D26;&#x53F7;&#x3001;&#x90AE;&#x7BB1;&#x641C;&#x7D22; <span class="token operator">--</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>div style<span class="token operator">=</span><span class="token string">&quot;margin-right: 110px;display: flex;&quot;</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>el<span class="token operator">-</span>input placeholder<span class="token operator">=</span><span class="token string">&quot;&#x8BF7;&#x8F93;&#x5165;&quot;</span> prefix<span class="token operator">-</span>icon<span class="token operator">=</span><span class="token string">&quot;el-icon-search&quot;</span> clearable v<span class="token operator">-</span>model<span class="token operator">=</span><span class="token string">&quot;listQuery.keyword&quot;</span><span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span><span class="token operator">/</span>el<span class="token operator">-</span>input<span class="token operator">&gt;</span>
                <span class="token operator">&lt;</span>el<span class="token operator">-</span>button icon<span class="token operator">=</span><span class="token string">&quot;el-icon-search&quot;</span> @click<span class="token operator">=</span><span class="token string">&quot;initList&quot;</span><span class="token operator">&gt;</span><span class="token operator">&lt;</span><span class="token operator">/</span>el<span class="token operator">-</span>button<span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">/</span>section<span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span>el<span class="token operator">-</span>table <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;table&quot;</span> <span class="token operator">:</span>data<span class="token operator">=</span><span class="token string">&quot;tableData&quot;</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span><span class="token operator">!</span><span class="token operator">--</span> &#x7528;&#x6237;&#x5217;&#x8868; <span class="token operator">--</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column type<span class="token operator">=</span><span class="token string">&quot;selection&quot;</span> width<span class="token operator">=</span><span class="token string">&quot;55&quot;</span> <span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;account&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x8D26;&#x6237;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip<span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;name&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x7528;&#x6237;&#x540D;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip <span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;email&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x90AE;&#x7BB1;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip <span class="token operator">/</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>el<span class="token operator">-</span>table<span class="token operator">-</span>column prop<span class="token operator">=</span><span class="token string">&quot;deptName&quot;</span> label<span class="token operator">=</span><span class="token string">&quot;&#x90E8;&#x95E8;&quot;</span> show<span class="token operator">-</span>overflow<span class="token operator">-</span>tooltip <span class="token operator">/</span><span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">/</span>el<span class="token operator">-</span>table<span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span>section <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;footer-container&quot;</span><span class="token operator">&gt;</span>
            <span class="token operator">&lt;</span>pagination<span class="token operator">-</span>temp <span class="token operator">:</span>page<span class="token punctuation">.</span>sync<span class="token operator">=</span><span class="token string">&quot;page&quot;</span> <span class="token operator">:</span>query<span class="token punctuation">.</span>sync<span class="token operator">=</span><span class="token string">&quot;listQuery&quot;</span> @initList<span class="token operator">=</span><span class="token string">&quot;initList&quot;</span> <span class="token operator">/</span><span class="token operator">&gt;</span>
        <span class="token operator">&lt;</span><span class="token operator">/</span>section<span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>template<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span>
    ToolButton <span class="token keyword">as</span> toolBtn<span class="token punctuation">,</span> <span class="token comment">// &#x5DE5;&#x5177;&#x680F;&#x7EC4;&#x4EF6;</span>
    Pagination <span class="token keyword">as</span> paginationTemp <span class="token comment">// &#x5206;&#x9875;&#x7EC4;&#x4EF6;</span>
<span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/components&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> <span class="token punctuation">{</span> operator_page<span class="token punctuation">,</span> operator_count <span class="token punctuation">}</span> <span class="token keyword">from</span> <span class="token string">&apos;@/api/operator&apos;</span><span class="token punctuation">;</span><span class="token comment">// &#x63A5;&#x53E3;&#x6587;&#x4EF6;</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    components<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">// &#x7EC4;&#x4EF6;&#x6CE8;&#x518C;</span>
        paginationTemp<span class="token punctuation">,</span> <span class="token comment">// &#x5206;&#x9875;</span>
        toolBtn <span class="token comment">// &#x6309;&#x94AE;</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">return</span> <span class="token punctuation">{</span>
            isEdit<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
            listQuery<span class="token operator">:</span> <span class="token punctuation">{</span> page<span class="token operator">:</span> <span class="token number">0</span><span class="token punctuation">,</span> count<span class="token operator">:</span> <span class="token number">10</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x67E5;&#x8BE2;&#x53C2;&#x6570;</span>
            tableData<span class="token operator">:</span> <span class="token punctuation">[</span><span class="token punctuation">]</span><span class="token punctuation">,</span> <span class="token comment">// &#x8868;&#x683C;&#x6570;&#x636E;</span>
            page<span class="token operator">:</span> <span class="token punctuation">{</span> current<span class="token operator">:</span> <span class="token number">1</span><span class="token punctuation">,</span> total<span class="token operator">:</span> <span class="token number">0</span> <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token comment">// &#x5206;&#x9875;&#x6570;&#x636E;</span>
        <span class="token punctuation">}</span>   
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    methods<span class="token operator">:</span> <span class="token punctuation">{</span>
        <span class="token function">add</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">&apos;add&apos;</span><span class="token punctuation">)</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token function">edit</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span><span class="token string">&apos;edit&apos;</span><span class="token punctuation">)</span>
        <span class="token punctuation">}</span><span class="token punctuation">,</span>
        <span class="token keyword">async</span> <span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token comment">// &#x521D;&#x59CB;&#x5316;&#x6570;&#x636E;</span>
            <span class="token keyword">try</span> <span class="token punctuation">{</span>
                <span class="token keyword">const</span> <span class="token punctuation">[</span><span class="token punctuation">{</span> data<span class="token operator">:</span> page <span class="token punctuation">}</span><span class="token punctuation">,</span> <span class="token punctuation">{</span> data<span class="token operator">:</span> count <span class="token punctuation">}</span><span class="token punctuation">]</span> <span class="token operator">=</span> <span class="token keyword">await</span> Promise<span class="token punctuation">.</span><span class="token function">all</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token function">operator_page</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token function">operator_count</span><span class="token punctuation">(</span><span class="token keyword">this</span><span class="token punctuation">.</span>listQuery<span class="token punctuation">)</span><span class="token punctuation">]</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>page<span class="token punctuation">.</span>total <span class="token operator">=</span> count<span class="token punctuation">.</span>data<span class="token punctuation">.</span>count<span class="token punctuation">;</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>tableData <span class="token operator">=</span> page<span class="token punctuation">.</span>data<span class="token punctuation">;</span>
            <span class="token punctuation">}</span> <span class="token keyword">catch</span> <span class="token punctuation">(</span>error<span class="token punctuation">)</span> <span class="token punctuation">{</span>
                <span class="token keyword">this</span><span class="token punctuation">.</span>loading <span class="token operator">=</span> <span class="token boolean">false</span><span class="token punctuation">;</span>
            <span class="token punctuation">}</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>
    <span class="token function">created</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">this</span><span class="token punctuation">.</span><span class="token function">initList</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="config.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: 配置文件">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"新建页面","level":"2.12","depth":1,"previous":{"title":"配置文件","level":"2.11","depth":1,"path":"src/config.md","ref":"src/config.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"合同管理","language":"zh-hans","gitbook":"3.2.3","description":"合同管理Web端"},"file":{"path":"src/newPage.md","mtime":"2020-03-07T04:18:21.188Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-07T04:19:36.591Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

